cmake_minimum_required(VERSION 2.6.3)
project(ToSubstitutePackageName)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
rosbuild_init()

#set the default path for built executables to the "bin" directory
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#set the default path for built libraries to the "lib" directory
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

#uncomment if you have defined messages
rosbuild_genmsg()
#uncomment if you have defined services
#rosbuild_gensrv()

rosbuild_find_ros_package(atrias)
if(DEFINED atrias_PACKAGE_PATH)
	include(${atrias_PACKAGE_PATH}/atrias.cmake)
else(DEFINED atrias_PACKAGE_PATH)
	message(ERROR "Could not find package atrias. I'm not going to build anything!")
endif(DEFINED atrias_PACKAGE_PATH)

# Find GTK libraries and build GUI library.
if(ATRIAS_BUILD_GUI)
	rosbuild_add_library(controller_gui SHARED src/controller_gui.cpp)
	target_link_libraries(controller_gui ${GTK2_LIBRARIES})
endif(ATRIAS_BUILD_GUI)

# Find RTT libraries and build Orocos Component.
if(ATRIAS_BUILD_CONTROLLERS)
	orocos_component(ToSubstituteClassName src/ToSubstituteClassName.cpp)
	ros_generate_rtt_typekit(ToSubstitutePackageName)
endif(ATRIAS_BUILD_CONTROLLERS)
